<!DOCTYPE html>
<html lang=en>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="VUE笔记1.安装配置iview​    安装 1cnpm install --save iview  ​    使用—在main.js中添加 123import iView from &amp;apos;iview&amp;apos;import &amp;apos;iview&#x2F;dist&#x2F;styles&#x2F;iview.css&amp;apos;Vue.use(iView)  2.关闭eslint校验​    找到build\web">
<meta property="og:type" content="article">
<meta property="og:title" content="V笔记">
<meta property="og:url" content="http:&#x2F;&#x2F;yoursite.com&#x2F;2019&#x2F;10&#x2F;31&#x2F;V%E7%AC%94%E8%AE%B0&#x2F;index.html">
<meta property="og:site_name" content="ECIN&#39;S BLOG">
<meta property="og:description" content="VUE笔记1.安装配置iview​    安装 1cnpm install --save iview  ​    使用—在main.js中添加 123import iView from &amp;apos;iview&amp;apos;import &amp;apos;iview&#x2F;dist&#x2F;styles&#x2F;iview.css&amp;apos;Vue.use(iView)  2.关闭eslint校验​    找到build\web">
<meta property="og:locale" content="en">
<meta property="og:image" content="c:%5CUsers%5CNICE%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5C1560335928975.png">
<meta property="og:image" content="c:%5CUsers%5CNICE%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5C1564844897411.png">
<meta property="og:updated_time" content="2019-08-09T11:49:10.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="c:%5CUsers%5CNICE%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5C1560335928975.png">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
          
        
    
    <!-- title -->
    <title>V笔记</title>
    <!-- styles -->
    <link rel="stylesheet" href="/css/style.css">
    <!-- persian styles -->
    
      <link rel="stylesheet" href="/css/rtl.css">
    
    <!-- rss -->
    
    
</head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/2019/11/04/%E4%BD%BF%E7%94%A8lombok%E6%B3%A8%E8%A7%A3%E7%AE%80%E5%8C%96%E4%BB%A3%E7%A0%81%E5%BC%80%E5%8F%91/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/2019/10/31/Tomcat--centOS%E4%B8%8A%E5%AE%89%E8%A3%85tomcat%E5%B9%B6%E9%83%A8%E7%BD%B2%E7%BD%91%E7%AB%99%EF%BC%9A/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">Previous post</span>
      <span id="i-next" class="info" style="display:none;">Next post</span>
      <span id="i-top" class="info" style="display:none;">Back to top</span>
      <span id="i-share" class="info" style="display:none;">Share post</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&text=V笔记" target="_blank" rel="noopener"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&is_video=false&description=V笔记" target="_blank" rel="noopener"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=V笔记&body=Check out this article: http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&name=V笔记&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&t=V笔记" target="_blank" rel="noopener"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#VUE笔记"><span class="toc-number">1.</span> <span class="toc-text">VUE笔记</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#1-安装配置iview"><span class="toc-number">1.0.1.</span> <span class="toc-text">1.安装配置iview</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-关闭eslint校验"><span class="toc-number">1.0.2.</span> <span class="toc-text">2.关闭eslint校验</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#3-安装使用axios"><span class="toc-number">1.0.3.</span> <span class="toc-text">3.安装使用axios</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#4-安装使用lang-”less”"><span class="toc-number">1.0.4.</span> <span class="toc-text">4.安装使用lang=”less”</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#5-使用路由"><span class="toc-number">1.0.5.</span> <span class="toc-text">5.使用路由</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#6-vuex-store状态管理的使用"><span class="toc-number">1.0.6.</span> <span class="toc-text">6.vuex store状态管理的使用</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#vsCode写VUE报错"><span class="toc-number">1.0.7.</span> <span class="toc-text">vsCode写VUE报错</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#vue使用cookie"><span class="toc-number">1.0.8.</span> <span class="toc-text">vue使用cookie</span></a></li></ol></li></ol></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        V笔记
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">ECIN'S BLOG</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2019-10-31T12:15:52.704Z" itemprop="datePublished">2019-10-31</time>
        
      
    </div>


      

      

    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h4 id="VUE笔记"><a href="#VUE笔记" class="headerlink" title="VUE笔记"></a>VUE笔记</h4><h6 id="1-安装配置iview"><a href="#1-安装配置iview" class="headerlink" title="1.安装配置iview"></a>1.安装配置iview</h6><p>​    安装</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cnpm install --save iview</span><br></pre></td></tr></table></figure>

<p>​    使用—在main.js中添加</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">import iView from &apos;iview&apos;</span><br><span class="line">import &apos;iview/dist/styles/iview.css&apos;</span><br><span class="line">Vue.use(iView)</span><br></pre></td></tr></table></figure>

<h6 id="2-关闭eslint校验"><a href="#2-关闭eslint校验" class="headerlink" title="2.关闭eslint校验"></a>2.关闭eslint校验</h6><p>​    找到build\webpack.base.conf.js，注释以下内容</p>
<p><img src="C:%5CUsers%5CNICE%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5C1560335928975.png" alt="1560335928975"></p>
<p>删掉就行了</p>
<h6 id="3-安装使用axios"><a href="#3-安装使用axios" class="headerlink" title="3.安装使用axios"></a>3.安装使用axios</h6><p>输入命令</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cnpm install axios -S</span><br></pre></td></tr></table></figure>

<p>使用</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">import axios from &apos;axios&apos;</span><br><span class="line">Vue.prototype.$axios = axios</span><br></pre></td></tr></table></figure>

<h6 id="4-安装使用lang-”less”"><a href="#4-安装使用lang-”less”" class="headerlink" title="4.安装使用lang=”less”"></a>4.安装使用lang=”less”</h6><p>安装两个插件less和less-loader</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cnpm install less less-loader -D</span><br></pre></td></tr></table></figure>

<p>配置webpack.base.conf.js文件，添加以下代码</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">        test:/\.less$/,</span><br><span class="line">        loader:&apos;less-loader&apos;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<p>完成</p>
<h6 id="5-使用路由"><a href="#5-使用路由" class="headerlink" title="5.使用路由"></a>5.使用路由</h6><h6 id="6-vuex-store状态管理的使用"><a href="#6-vuex-store状态管理的使用" class="headerlink" title="6.vuex store状态管理的使用"></a>6.vuex store状态管理的使用</h6><p>安装</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cnpm install vuex --save</span><br></pre></td></tr></table></figure>

<p>创建store/index.js文件</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><span class="line">import Vue from &apos;vue&apos;</span><br><span class="line">import Vuex from &apos;vuex&apos;</span><br><span class="line"></span><br><span class="line">Vue.use(Vuex)</span><br><span class="line"></span><br><span class="line">const store=new Vuex.Store(&#123;</span><br><span class="line">  state:&#123;</span><br><span class="line">    msg: &apos;===&gt;&apos;,</span><br><span class="line">  &#125;,</span><br><span class="line">  getters:&#123;</span><br><span class="line">    gettersDemo:function (state) &#123;</span><br><span class="line"></span><br><span class="line">    &#125;</span><br><span class="line">  &#125;,</span><br><span class="line">  mutations:&#123;</span><br><span class="line">    add(state)&#123;</span><br><span class="line">      state.msg+=&apos;&gt;&apos;</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;,</span><br><span class="line">  actions:&#123;</span><br><span class="line">    addFun(context)&#123;</span><br><span class="line">      context.commit(&quot;add&quot;);</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;)</span><br><span class="line"></span><br><span class="line">export default store</span><br></pre></td></tr></table></figure>

<p>在main.js文件中添加</p>
<p><img src="C:%5CUsers%5CNICE%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5C1564844897411.png" alt="1564844897411"></p>
<p>组件使用store</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br></pre></td><td class="code"><pre><span class="line">&lt;template&gt;</span><br><span class="line">  &lt;div id=&quot;index&quot;&gt;</span><br><span class="line">    &lt;h1&gt;&#123;&#123;msg&#125;&#125;&lt;/h1&gt;</span><br><span class="line">    &lt;button @click=&quot;clickBtn&quot;&gt;Click&lt;/button&gt;</span><br><span class="line">  &lt;/div&gt;</span><br><span class="line">&lt;/template&gt;</span><br><span class="line"></span><br><span class="line">&lt;script&gt;</span><br><span class="line">  import &#123;mapState,mapActions,mapGetters&#125; from &apos;vuex&apos;</span><br><span class="line">  export default &#123;</span><br><span class="line">    data()&#123;</span><br><span class="line">      return&#123;</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;,</span><br><span class="line">    methods: &#123;</span><br><span class="line">      clickBtn()&#123;</span><br><span class="line">        this.$store.dispatch(&quot;addFun&quot;);</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;,</span><br><span class="line">    computed:&#123;</span><br><span class="line">      ...mapState(&#123;</span><br><span class="line">        msg:state=&gt;state.msg</span><br><span class="line">      &#125;)</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&lt;/script&gt;</span><br><span class="line"></span><br><span class="line">&lt;style scoped&gt;</span><br><span class="line"></span><br><span class="line">&lt;/style&gt;</span><br></pre></td></tr></table></figure>

<h6 id="vsCode写VUE报错"><a href="#vsCode写VUE报错" class="headerlink" title="vsCode写VUE报错"></a>vsCode写VUE报错</h6><p>​    文件 &gt; 首选项 &gt; 设置 &gt; 搜索 vetur.validation.template 勾掉</p>
<h6 id="vue使用cookie"><a href="#vue使用cookie" class="headerlink" title="vue使用cookie"></a>vue使用cookie</h6><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">cnpm install vue-cookies --save //安装</span><br><span class="line">import cookie from &apos;vue-cookies&apos; //导入</span><br><span class="line">Vue.use(cookie)  //使用</span><br><span class="line"></span><br><span class="line">this.$cookies.set(keyname,time) //设置cookie</span><br><span class="line">this.$cookies.get(keyName)  //获取cookie</span><br><span class="line">this.$cookies.remove(keyName) //删除cookie</span><br><span class="line">this.$cookies.isKey(keyName) //查询cookie是否存在</span><br><span class="line">this.$cookies.keys() //获取所有cookie</span><br><span class="line"></span><br><span class="line">#注意时间的使用</span><br><span class="line">this.$cookies.set(keyname,&apos;60s&apos;) #60s</span><br><span class="line">this.$cookies.set(keyname,&apos;60MIN&apos;) #60分</span><br><span class="line">this.$cookies.set(keyname,&apos;60d&apos;) #60天</span><br><span class="line">this.$cookies.set(keyname,&apos;60m&apos;) #60月</span><br><span class="line">this.$cookies.set(keyname,&apos;60h&apos;) #60小时</span><br><span class="line">this.$cookies.set(keyname,&apos;60y&apos;) #60年</span><br></pre></td></tr></table></figure>


  </div>
</article>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#VUE笔记"><span class="toc-number">1.</span> <span class="toc-text">VUE笔记</span></a><ol class="toc-child"><li class="toc-item toc-level-6"><a class="toc-link" href="#1-安装配置iview"><span class="toc-number">1.0.1.</span> <span class="toc-text">1.安装配置iview</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#2-关闭eslint校验"><span class="toc-number">1.0.2.</span> <span class="toc-text">2.关闭eslint校验</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#3-安装使用axios"><span class="toc-number">1.0.3.</span> <span class="toc-text">3.安装使用axios</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#4-安装使用lang-”less”"><span class="toc-number">1.0.4.</span> <span class="toc-text">4.安装使用lang=”less”</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#5-使用路由"><span class="toc-number">1.0.5.</span> <span class="toc-text">5.使用路由</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#6-vuex-store状态管理的使用"><span class="toc-number">1.0.6.</span> <span class="toc-text">6.vuex store状态管理的使用</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#vsCode写VUE报错"><span class="toc-number">1.0.7.</span> <span class="toc-text">vsCode写VUE报错</span></a></li><li class="toc-item toc-level-6"><a class="toc-link" href="#vue使用cookie"><span class="toc-number">1.0.8.</span> <span class="toc-text">vue使用cookie</span></a></li></ol></li></ol></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&text=V笔记" target="_blank" rel="noopener"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&is_video=false&description=V笔记" target="_blank" rel="noopener"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=V笔记&body=Check out this article: http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/" target="_blank" rel="noopener"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&title=V笔记" target="_blank" rel="noopener"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&name=V笔记&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/10/31/V%E7%AC%94%E8%AE%B0/&t=V笔记" target="_blank" rel="noopener"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> Menu</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> TOC</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> Share</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> Top</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy; 2020 ECIN520
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
    <!-- styles -->
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">

    <!-- jquery -->
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>
<!-- clipboard -->

  <script src="/lib/clipboard/clipboard.min.js"></script>
  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"Copy to clipboard!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "Copied!");
      e.clearSelection();
    })
  })
  </script>

<script src="/js/main.js"></script>
<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

<!-- Disqus Comments -->


</body>
</html>
